<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

    <div id="app">
        <!-- 
            v-on:事件名="内联【语句】" -- 完整
            @事件名="内联【语句】" -- 简写
        -->
        <button @click="count = count - 2">-</button>
        <span>{{ count }}</span>
        <button v-on:click="count++">+</button>
    </div>

    <script src="./js/vue.js"></script>
    <script>
        const app = new Vue({
            el: '#app',
            data: {
                count: 100
            }
        })
    </script>

</body>

</html>